{loop $commentarr $v}   
<div id="answer{$v['commentid']}" class="answer{if $v['userid']==$TS_USER['userid']} highlight{/if}">
   <div class="answer-digg digg">
       <a title="支持(+1)" class="answer-digg-up" data-id="{$v['commentid']}" data-user="{$v['userid']}" data-cur="{$TS_USER['userid']}" href="javascript:void 0;"><s></s>顶</a>
       <a title="反对(-1)" class="answer-digg-dw" data-id="{$v['commentid']}" data-user="{$v['userid']}" data-cur="{$TS_USER['userid']}" href="javascript:void 0;"><s></s>踩</a>
   </div>
   <div class="answer-r">
    <div class="answer-t">
        <a  title="{$v['username']}" href="{tsUrl('user','topic',array('id'=>$v['userid']))}" class="answer-img">
            <img width="24" height="24" src="<!--{if $v['face']==''}-->{SITE_URL}public/images/user_normal.jpg<!--{else}-->{php echo tsXimg($v['face'],'user','24','24',$v['path'],'1')}<!--{/if}-->">
        </a>
        <p class="answer-usr">
            <a  title="{$v['username']}" href="{tsUrl('user','topic',array('id'=>$v['userid']))}" class="answer-usr-name">{$v['username']}</a>
        </p>
        <p class="answer-date">{php echo date('Y-m-d H:i:s', $v['addtime']);}</p>
    </div>
    <div data-id="{$v['commentid']}" class="answer-diggers diggers">
    {$v['digg']}支持&nbsp;&nbsp;/&nbsp;&nbsp;{$v['undigg']}反对{if $v['diggarr']}，来自{/if}
    <span>
    {loop $v['diggarr'] $k $digg}
        {if $k < 3}
         <a href="{tsUrl('user','topic',array('id'=>$digg['userid']))}">$digg['username']</a>
         {if (count($v['diggarr']) - 1) > $k && $k < 2}、{/if}
        {/if}
    {/loop}
    </span>
    {if count($v['diggarr']) > 2}
    <a data-id="" class="expandDiggers" href="javascript:void 0;">更多...</a>
    <span class="hide">
        {loop $v['diggarr'] $k $digg}
            {if $k > 2}
            	、<a href="{tsUrl('user','topic',array('id'=>$digg['userid']))}">$digg['username']</a>
            {/if}
        {/loop}
    </span>
    {/if}
    </div>
    
    <script type="text/data" class="hide diggersData">
                    {php echo json_encode(array('dig'=>$v['diggarr'], 'num'=>array('d'=>{$v['digg']}, u=>{$v['undigg']})));}
                </script>
      <div class="answer-txt answerTxt" id="answer-txt{$v['commentid']}">{php echo nl2br(BBCode2Html($v['comment']));}</div>
      <div class="cmts cmtsBody">
       <div class="cmts-t cmtsTitle">
           <p class="fl">
               <a class="cmts-num" data-operation="control" href="javascript: void 0;">{if $v['askaddarr']}{php echo count($v['askaddarr']);}条讨论{else}添加讨论{/if}</a>
               {if 1 == $TS_USER['isadmin'] || $v['userid']==$TS_USER['userid']}
              <span class="split">|</span><a id="deleteAnswer" data-id="{$v['commentid']}" data-operation="deleteAnswer" href="javascript: void 0;">删除</a>
            {/if}
            {if $v['userid']==$TS_USER['userid']}
               <span class="split">|</span>
               <a id="editAnswer" data-id="{$v['commentid']}" data-operation="editAnswer" href="javascript: void 0;">修改</a>
               {/if}
           </p>
      </div>
         <div class="hide cmtsList">
                 <ul class="cmts-list">
                 {loop $v['askaddarr'] $addarr}
                <li>{$addarr['content']}&nbsp;-&nbsp;<a  href="{tsUrl('user','topic',array('id'=>$addarr['userid']))}">{$addarr['username']}</a> {$addarr['addtime']}
                {if $addarr['userid'] == $TS_USER['userid']}
                <a class="cmts-list-d" data-operation="deleteCmt" data-id="{$addarr['replyid']}" href="javascript:void 0">删除</a>
                {/if}
                </li>
           {/loop}
                 </ul>
                 <div class="cmts-do cmtsDo">
                     <textarea class="b_txt" cols="30" rows="10" name="cmt"></textarea>
                     <p>
                         <input type="button" data-type="answer" data-id="{$v['commentid']}" data-operation="newCmt" class="mw_btn" value="讨论">
                     </p>
                 </div>
             </div>
     </div>
    </div>
</div>
{/loop}

{if 0 != $next}
	<a id="expandAnswer" class="answer-expand" data-id="{$next}" href="javascript:void 0;">显示更多答案</a>
{/if}